import schedule
import time
import subprocess
from scrapy import cmdline


s = time.time()


def start():
    cmdline.execute("scrapy crawl weather".split())
    # subprocess.Popen("scrapy crawl weather")


if __name__ == '__main__':
    start()
    # print(time.time())
    # schedule.every(1).days.do(start)
    # while True:
    #     schedule.run_pending()
    #     time.sleep(1)
